﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HDS.Model
{
    public class ResultData<T>
    {
        public ResultData()
        {
            Success = true;
            Code = ErrorCode.OK;
            Message = string.Empty;
            Data = default;
        }

        public bool Success { get; set; }

        public string Message { get; set; }

        /// <summary>
        /// 错误代码
        /// </summary>
        public ErrorCode Code { get; set; }

        public T Data { get; set; }
    }
}